<?php
namespace BoxSns\Hooks;
class UserHooks extends \HooksController
{


    //上传头像
    function upload_attach_complete_avatar(&$param)
    {
        $param['success'] = true;
        // dump($param['data']['file_path']);
        BoxModel("system_member")->where(array('user_id' => session("user_id")))->save(array('headimg' => $param['data']['file_path']));
    }
 
}
